import requests

# 代理资源
# https://github.com/jhao104/proxy_pool?tab=readme-ov-file

proxies = {
    'HTTPS': '183.247.152.98:53281'
}

header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36'
}

url = "https://tieba.baidu.com/f?kw=python"
r = requests.get(url, headers=header, proxies=proxies)
print(r)
print(r.text)
